﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Microsoft_Phone_Controls_Maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps" 
    x:Class="desarrolloMobile.DGTViewer.DetailsPage"
    d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    SupportedOrientations="Portrait"  Orientation="Portrait" 
    shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.Resources>
		<Storyboard x:Name="Storyboard1"/>
		<Storyboard x:Name="Storyboard2"/>
	</phone:PhoneApplicationPage.Resources>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>

    <!--Data context is set to sample data above and first item in sample data collection below and LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" d:DataContext="{Binding Incidencias[0]}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" MinHeight="138"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel contains details text. Place additional content here-->
        <Canvas x:Name="TitlePanel" Margin="12,17,0,4" Grid.Row="0">
    		<TextBlock x:Name="PageTitle" Text="{Binding Poblacion}" Style="{StaticResource PhoneTextNormalStyle}" Margin="0" Canvas.Left="46" Width="414"/>
    		<Image x:Name="imgSenyal" Source="Images/Viento.png" Stretch="Fill" Width="96" Height="85" Canvas.Top="29" Canvas.Left="364"/>
    		<TextBlock x:Name="ListTitle" Text="{Binding Carretera}" Margin="0" Style="{StaticResource PhoneTextTitle1Style}" Height="85" Canvas.Top="28" Width="360"/>
    		<Image x:Name="imgAutonomia" Source="Images/Valencia.jpg" Stretch="Fill" Height="24" Width="37" Canvas.Left="1"/>
    	</Canvas>

        <!--ContentPanel contains details text. Place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Grid.RowDefinitions>
        		<RowDefinition Height="Auto" MinHeight="109"/>
        		<RowDefinition/>
        	</Grid.RowDefinitions>
        	<TextBlock Margin="0,8,0,13.333" TextWrapping="Wrap" FontSize="48" Text="{Binding Causa}"/>
        	<TextBlock HorizontalAlignment="Left" Height="36" Margin="8,5.667,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="28" FontWeight="Bold" FontSize="24" Grid.Row="1"><Run Text="E"/><Run Text="n"/></TextBlock>
        	<TextBlock Height="36" Margin="40,5.667,0,0" TextWrapping="Wrap" Text="{Binding Carretera}" VerticalAlignment="Top" FontFamily="Segoe WP" FontSize="24" Grid.Row="1"/>
        	<TextBlock HorizontalAlignment="Left" Height="31" Margin="8,49.667,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="108" FontWeight="Bold" FontSize="24" Grid.Row="1"><Run Text="A"/><Run Text="ltura de"/></TextBlock>
        	<TextBlock Height="31" Margin="120,49.667,52,0" TextWrapping="Wrap" Text="{Binding Poblacion}" VerticalAlignment="Top" FontSize="24" Grid.Row="1"/>
        	<TextBlock HorizontalAlignment="Right" Height="31" Margin="0,49.667,8,0" TextWrapping="Wrap" Text="{Binding Matricula}" VerticalAlignment="Top" Width="40" TextAlignment="Right" FontSize="24" Grid.Row="1"/>
        	<TextBlock Height="36" Margin="8,90.667,154,0" TextWrapping="Wrap" VerticalAlignment="Top" FontWeight="Bold" FontSize="24" Grid.Row="1"><Run Text="Tramo K"/><Run Text="ilométrico"/><Run Text=" Inicial"/></TextBlock>
        	<TextBlock Height="36" Margin="0,90.667,8,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding Incial}" FontSize="24" HorizontalAlignment="Right" Width="142" Grid.Row="1"/>
        	<TextBlock HorizontalAlignment="Left" Height="36" Margin="8,173.667,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="92" FontWeight="Bold" Text="Sentido" FontSize="24" Grid.Row="1"/>
        	<TextBlock Height="36" Margin="104,173.667,8,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding Sentido}" FontSize="24" Grid.Row="1"/>
        	<TextBlock HorizontalAlignment="Left" Margin="8,220.667,0,0" TextWrapping="Wrap" Width="66" FontWeight="Bold" Text="Hacia" FontSize="24" Height="36" Grid.Row="1" VerticalAlignment="Top"/>
        	<TextBlock Margin="78,220.667,8,0" TextWrapping="Wrap" Text="{Binding Hacia}" FontSize="24" Height="36" Grid.Row="1" VerticalAlignment="Top"/>
        	<TextBlock Margin="8,0,0,8" TextWrapping="Wrap" FontWeight="Bold" Text="Última actualización" FontSize="16" HorizontalAlignment="Left" Height="21" VerticalAlignment="Bottom" Width="156" Grid.Row="1"/>
        	<TextBlock Margin="168,0,8,8" TextWrapping="Wrap" Text="{Binding FechaHora}" FontSize="16" Height="21" VerticalAlignment="Bottom" FontStyle="Italic" Grid.Row="1"/>
        	<TextBlock Height="36" Margin="8,133.667,173,0" TextWrapping="Wrap" VerticalAlignment="Top" FontWeight="Bold" FontSize="24" Grid.Row="1"><Run Text="Tramo K"/><Run Text="ilométrico"/><Run Text=" "/><Run Text="Final"/></TextBlock>
        	<TextBlock Height="36" Margin="0,133.667,8,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding Incial}" FontSize="24" HorizontalAlignment="Right" Width="161" Grid.Row="1"/>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>